package components;

import java.math.BigInteger;

/**
 * 
 * @author Anarchee
 *
 */
public class RSAKey {
	
	private BigInteger n; 
	private BigInteger exp;
	
	public RSAKey(BigInteger _n, BigInteger _exp) {
		n = _n;
		exp = _exp;
	}
	
	public RSAKey(String str) {
		String[] nums = str.split(",");
		n = new BigInteger(nums[0]);
		exp = new BigInteger(nums[1]);
	}
	
	public BigInteger getN() {
		return n;
	}
	
	public BigInteger getExp() {
		return exp;
	}
	
	@Override
	public String toString() {
		return n + "," + exp;
	}
	
}
